package com.lobaby.tools.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.poi.ss.usermodel.Row;

/**
 * @author 辰雨期
 * Created by 辰雨期 on 2021/11/30.
 */
@Data
@NoArgsConstructor
public class CountObj {
    private String name;

    private String date;

    private String deptName;

    private String startTime;

    private String startStatus;

    private String endTime;

    private String endStatus;

    private String remark;

    public CountObj(Row operRow) {
        this.setDate(operRow.getCell(0).getStringCellValue());
        this.setName(operRow.getCell(2).getStringCellValue());
        this.setDeptName(operRow.getCell(3).getStringCellValue());
        this.setStartTime(operRow.getCell(6).getStringCellValue());
        this.setStartStatus(operRow.getCell(7).getStringCellValue());
        this.setEndTime(operRow.getCell(8).getStringCellValue());
        this.setEndStatus(operRow.getCell(9).getStringCellValue());
        this.setRemark(operRow.getCell(9) != null && !operRow.getCell(9).getStringCellValue().equals("--") ? operRow.getCell(9).getStringCellValue() : "");
    }
}
